<ion-view view-title="车辆检查-2.检查项" cache-view="false">
	<ion-nav-back-button></ion-nav-back-button>

	<ion-content class="has-header has-footer" scrollbar-y="false">
	<ul>
		<li class="samp" ng-repeat="item in checkItems">
			<div class="row">
				<div class="positive question-text col-8" ng-class="item.warn">{{item.questionno}}. </div>
				<div class="positive question-text" ng-class="item.warn">{{item.checkitem}}</div>
			</div>
			<div class="row">
				<div class="col col-offset-8">
					<label class="checkbox checkbox-balanced" style="padding-left:0">
					<input type="radio" ng-model="item.answer" ng-value="1" name="answer{{$index}}">
					<p class="positive radio-text">是</p>
					</label>
				</div>
				<div class="col">
					<label class="checkbox checkbox-balanced">
						<input type="radio" ng-model="item.answer" ng-value="2" name="answer{{$index}}">
						<p class="positive radio-text">否</p>
					</label>
				</div>
			</div>

            <div ng-if="item.answer==2">
                <span class="horizon"></span>
                <div class="photo-div" >
                    <div class="img-div" ng-repeat="img in item.photos track by $index">
                        <img ng-src="{{img}}" width="100%" height="100%"/>
                    </div>
                    <button ng-if="item.photos.length < 2" ng-click="takePhoto($index)" class="button icon photo-btn ion-ios-camera-outline "></button>
                </div>
                <div class="item-input note-div">
                    <span>备注：</span>
                    <input type="text" placeholder="点击输入">
                </div>
            </div>

		</li>
	</ul>
	</ion-content>
	
	<div class="bar bar-footer bar-stable hide-on-keyboard-open">
		<div class="row nopading">
			<div class="left-foot-btn nopading"> 
				<button class="button button-block button-balanced next-btn" ng-click="saveBtn()">保存</button>
			</div>
			<div class="col nopading foot-btn">
				<button class="button button-block button-positive next-btn" ng-click="checklistSubmit()">下一步</button>
			</div>
		</div>
	</div>
</ion-view>
